package com.bwhx.eruler.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.bwhx.eruler.bean.OrderBack;
import com.bwhx.eruler.bean.Page;
import com.bwhx.eruler.bean.Ruler;
import com.bwhx.eruler.dao.OrderBackDao;

/**
 * @Description:
 */
@Repository
public class OrderBackDaoImpl extends BaseDaoImpl<OrderBack> implements OrderBackDao {
	public OrderBackDaoImpl() {
		this.setNs("com.bwhx.eruler.mapper.OrderBackMapper.");
	}

	@Override
	public List<OrderBack> list(Page p) {
		return getSqlSession().selectList("com.bwhx.eruler.mapper.OrderBackMapper." + "list",p);
	}

	@Override
	public Integer count(OrderBack ob) {
		Object selectOne = getSqlSession().selectOne("com.bwhx.eruler.mapper.OrderBackMapper." + "count",ob);
		if(null!=selectOne && selectOne instanceof Integer){
			return (int)selectOne;
		}
		return 0;
	}


	
	
}
